package cn.net.susan.seckill.business.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * 密码加密方式
 *
 * @author 苏三，该项目是知识星球：java突击队 的内部项目
 * @date 2024/6/25 下午5:51
 */
@Configuration
public class DecodeConfig {

    @Bean
    public PasswordEncoder passwordEncoder() {
        // 密码加密方式
        return new BCryptPasswordEncoder();
    }
}
